<?php 

if ($_POST) {
	$db = include 'db.php';
	$id =$_GET['id'];
	$data  = $_POST;
	$db[$id] = $data;
	$new1 = var_export($db,TRUE);
	$new1= "<?php return $new1 ?>";
	file_put_contents('./db.php', $new1);
	$message = "修改成功";
	include './tpl/success.html';
}else{

}



 ?>